package cn.cttic.base.api.domain.bo;

import cn.cttic.base.api.domain.BaseCompanyProduct;
import cn.cttic.common.mybatis.core.domain.BaseEntity;
import cn.cttic.common.core.validate.AddGroup;
import cn.cttic.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.math.BigDecimal;

/**
 * 企业套餐业务对象 base_company_product
 *
 * @author Times.Studio
 * @date 2024-09-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BaseCompanyProduct.class, reverseConvertGenerate = false)
public class BaseCompanyProductBo extends BaseEntity {

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 销售人员
     */
    @NotBlank(message = "销售人员不能为空", groups = { AddGroup.class, EditGroup.class })
    private String companyId;

    /**
     * 产品套餐
     */
    @NotBlank(message = "产品套餐不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productId;

    /**
     * 销售价格
     */
    private BigDecimal salePrice;

    /**
     * 适配车型
     */
    @NotBlank(message = "适配车型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String carModel;


}
